package cn.xopencode.securityservice.enums.activity;

import cn.xopencode.common.framework.core.IntArrayValuable;

import java.util.Arrays;

/**
 * 技能比武名次枚举
 */
public enum ActivityRankingEnum implements IntArrayValuable {

    Ranking_1(1, "公司第一名"),
    Ranking_2(2, "公司第二名"),
    Ranking_3(3, "公司第三名"),
    Ranking_4(4, "通报表扬");


    public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(ActivityRankingEnum::getRanking).toArray();

    /**
     *  类型
     */
    private final Integer ranking;
    /**
     * 描述
     */
    private final String name;

    ActivityRankingEnum(Integer ranking, String name) {
        this.ranking = ranking;
        this.name = name;
    }

    public Integer getRanking() {
        return ranking;
    }

    public String getName() {
        return name;
    }

    @Override
    public int[] array() {
        return ARRAYS;
    }

}
